import typescript from '@rollup/plugin-typescript';

export default {
  input   : 'src/index.tsx',
  output  : {
    file   : './static/lib/index.js',
    name   : 'MathHomework',
    format : 'umd',
    globals: {
      'react'    : 'React',
      'react-dom': 'ReactDOM',
    }
  },
  external: ['react', 'react-dom'],
  plugins : [
    typescript({
      module     : 'ES2015',
      sourceMap  : false,
      declaration: false,
    })
  ]
};